home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
wb
/
czesc_4
/
vark15
/
utils p-z
/
vmailto.lha
/
vmailto
/
Vmailto
next >
Wrap
AmigaDOS Script File
|
1996-05-04
|
892b
|
33 lines
.KEY TOADDRESS/A
.BRA {
.KET }
; set the script bit (protect +s) and call this from V
; with {path}:send-mail %h
; Generate To: and Subject: headers
;
echo >T:V-Mailto.{$$} "To: {TOADDRESS}*NSubject: *N"
; Replace UULIB:.SIG with the path to your signature file
type >>T:V-Mailto.{$$} UULIB:.SIG
; Change all references to pubscreen=voyager to the name of your public
; screen on which Voyager is running.
; Change the editor 'CED' if you want but make sure it doesn't auto detach
; from the calling process.
stack 10000
CED -KEEPIO -pubscreen=Voyager T:V-Mailto.{$$}
requestchoice >env:send "Voyager Request" "Send the mail??" "YES" "NO" PUBSCREEN=Voyager
if VAL $send EQ 0
requestchoice TITLE="" BODY="Message Cancelled" GADGETS="OK" PUBSCREEN=Voyager
else
amitcp:bin/SENDMAIL <T:V-Mailto.{$$}
endif
; Clean up temporary files.
delete >NIL: T:V-Mailto.{$$}
delete >nil: env:send